mjpg-streamer: Remove build date-time from image
authorTed Hess <[email protected]>
Wed, 13 Dec 2017 19:05:00 +0000 (14:05 -0500)
committerTed Hess <[email protected]>
Wed, 13 Dec 2017 19:05:09 +0000 (14:05 -0500)
Remove un-needed uvcvideo.h (use system include)

Signed-off-by: Ted Hess <[email protected]>
multimedia/mjpg-streamer/Makefile
multimedia/mjpg-streamer/patches/035-remove_build_date-time.patch [new file with mode: 0644]

index 1c18e5d92312f0dd38f226b34dde8a7a660e6280..bc8e44ce7f67fd726440790193b3afd85c241106 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=mjpg-streamer
 PKG_REV:=182
 PKG_VERSION:=r$(PKG_REV)
-PKG_RELEASE:=9
+PKG_RELEASE:=10
 PKG_MAINTAINER:=Roger D <[email protected]>, \
                Ted Hess <[email protected]>
 
@@ -71,6 +71,10 @@ define Build/Prepare
     endif
 endef
 
+define Build/Configure
+    $(RM) $(PKG_BUILD_DIR)/plugins/input_uvc/uvcvideo.h
+endef
+
 ifeq ($(CONFIG_MJPG_STREAMER_V4L2),y)
     TARGET_CFLAGS+= -DUSE_LIBV4L2
     TARGET_LDFLAGS+= -lv4l2
diff --git a/multimedia/mjpg-streamer/patches/035-remove_build_date-time.patch b/multimedia/mjpg-streamer/patches/035-remove_build_date-time.patch
new file mode 100644 (file)
index 0000000..f2d0519
--- /dev/null
@@ -0,0 +1,34 @@
+--- a/Makefile
++++ b/Makefile
+@@ -15,8 +15,8 @@ DESTDIR = /usr/local
+ # set the compiler to use
+ CC = gcc
+-SVNDEV := -D'SVN_REV="$(shell svnversion -c .)"'
+-CFLAGS += $(SVNDEV)
++#SVNDEV := -D'SVN_REV="$(shell svnversion -c .)"'
++#CFLAGS += $(SVNDEV)
+ # general compile flags, enable all warnings to make compile more verbose
+ CFLAGS += -DLINUX -D_GNU_SOURCE -Wall 
+--- a/mjpg_streamer.c
++++ b/mjpg_streamer.c
+@@ -253,15 +253,12 @@ int main(int argc, char *argv[])
+             /* v, version */
+         case 6:
+         case 7:
+-            printf("MJPG Streamer Version: %s\n" \
+-            "Compilation Date.....: %s\n" \
+-            "Compilation Time.....: %s\n",
++            printf("MJPG Streamer Version: %s\n",
+ #ifdef SVN_REV
+-            SVN_REV,
++            SVN_REV);
+ #else
+-            SOURCE_VERSION,
++            SOURCE_VERSION);
+ #endif
+-            __DATE__, __TIME__);
+             return 0;
+             break;